import request from "@/util/request";

export default {
    //获取所有的种类
    findAllCategory() {
        return request({
            url: "/content/category/list",
            method: "get"
        })
    },
    //条件查询带分页
    search(page,pageSize,data){
        return request({
            url:`/content/category/search/${page}/${pageSize}`,
            method:"post",
            data
        })
    },
    //保存类型
    save(url,method,data){
        return request({
            url,
            method,
            data
        })
    },
    //删除类型
    delete(ids){
        return request({
            url:`content/category/delete/${ids}`,
            method:"delete"
        })
    },
}
